package com.xxxy.Controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@RestController
public class ControllerServiceProvider {
//    @GetMapping("/provider/hello")
//    public String hello(String userName){
//        return "filter test:"+userName;
//    }

    @GetMapping("/filterTest")
    public String filterTest(HttpServletRequest request, HttpServletResponse response){
        String value = request.getParameter("userName");
        return "filter AddRequestHeader test:"+value;
    }
}